/*
 * @Author: nainaiyi s15037075861@163.com
 * @Date: 2022-07-12 14:10:45
 * @LastEditors: nainaiyi s15037075861@163.com
 * @LastEditTime: 2022-09-05 10:55:48
 * @FilePath: \网站2001A尚盈盈7.12月考\demo\src\Route\index.tsx
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import React, { lazy } from "react";

const Layout = lazy(() => import("../pages/layout/index"))

const Home = lazy(() => import("../pages/home/index"))
const Table = lazy(() => import("../pages/table/index"))
const Shop = lazy(() => import("../pages/shop/index"))
const My = lazy(() => import("../pages/my/index"))

const Detail = lazy(() => import("../pages/detail/index"))

export const RouteList = [
    {
        path: "/",
        element: <Layout />,
        children: [
            {
                path: "/",
                element: <Home />
            },
            {
                path: "/table",
                element: <Table />
            },
            {
                path: "/shop",
                element: <Shop />
            },
            {
                path: "/my",
                element: <My />
            }
        ]
    },
    {
        path: "/detail/:id",
        element: <Detail />
    }
]